<template>
  <div>
    <el-form
      :inline="true"
      ref="fromdata"
      :model="fromdata"
      label-width="130px"
      label-position="right"
    >
      <el-row>
        <el-col :span="4">保险信息</el-col>
      </el-row>
      <el-divider content-position="center"></el-divider>
      <el-row>
        <el-col :span="12">
          <el-form-item label="商业险公司:">
            <div>{{ fromdata.companyName }}</div>
          </el-form-item>
        </el-col>

        <el-col :span="6">
          <el-form-item label="销售人:">
            <div>{{ fromdata.syxSellName }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="是否续保:">
            <div>{{ fromdata.syxContinueInsurance ? '是': '否' }}</div>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="6">
          <el-form-item label="商业险投保日期">
            <div>{{ fromdata.syxBizInsureDate }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="商业险保单号:">
            <div>{{ fromdata.syxBizCode }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="投保人:">
            <div>{{ fromdata.syxInsureName }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="被保险人:">
            <div>{{ fromdata.syxBeInsureName }}</div>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="6">
          <el-form-item label="预计成本:">
            <div>{{ fromdata.syxPredictCost }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="预计收入:">
            <div>{{ fromdata.syxPredictIncome }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="实际成本:">
            <div>{{ fromdata.syxActualCost }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="实际收入:">
            <div>{{ fromdata.syxActualIncome }}</div>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="备注:">
            <div>{{ fromdata.syxRemark }}</div>
          </el-form-item>
        </el-col>
      </el-row>
      <el-divider content-position="center"></el-divider>
      <el-row>
        <el-col :span="6">
          <el-form-item label="交强险单号:">
            <div>{{ fromdata.jqxNo }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="交强险保单号:">
            <div>{{ fromdata.jqxProtectNo }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="销售人:">
            <div>{{ fromdata.jqxSellName }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="是否续保:">
            <div>{{ fromdata.jqxContinueInsurance ? '是': '否' }}</div>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="6">
          <el-form-item label="交强险投保日期:">
            <div>{{ fromdata.strongInsureDate }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="投保人:">
            <div>{{ fromdata.jqxInsureName }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="被保险人:">
            <div>{{ fromdata.jqxBeInsureName }}</div>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="6">
          <el-form-item label="预计成本:">
            <div>{{ fromdata.jqxPredictCost }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="预计收入:">
            <div>{{ fromdata.jqxPredictIncome }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="实际成本:">
            <div>{{ fromdata.jqxActualCost }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="实际收入:">
            <div>{{ fromdata.jqxActualIncome }}</div>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="备注:">
            <div>{{ fromdata.jqxRemark }}</div>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
import { getFindById } from "@/api/after-sale/workOrderManage/insuranceOrder";
export default {
  props: {
    id: {
      type: Number,
    },
  },
  data() {
    return {
      fromdata: {},
    };
  },
  computed: {},
  async created() {
    let { success, data } = await getFindById(this.id);
    if (success) {
      this.fromdata = data;
    }
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.el-table .delete-row {
  background: #f5f7fa;
  color: #ccc !important;
}
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.avatar-uploader .el-upload:hover {
  border-color: #409eff;
}
.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 178px;
  height: 178px;
  line-height: 178px;
  text-align: center;
}
.avatar {
  width: 80px;
  height: 80px;
  display: block;
}
.colorF40 {
  color: #f40;
}
</style>
